package org.com.behavioralPattern.visitorPattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/27 18:17
 */
public class RunVisitor implements ComputerVisitor {
    @Override
    public void vistCPU(CPU cpu) {
        cpu.run();
    }

    @Override
    public void vistHarddisk(Harddisk harddisk) {
        harddisk.run();
    }
}
